var rkWinObj;
require(['jquery',rkjsPath+'rkTree.js',rkjsPath+'rkTags.js',rkjsPath+'rkWin.js',rkjsPath+'rkFormUtil.js',rkjsPath+'rkAlert.sweet.js',rkjsPath+'rkAjax.js',rkjsPath+'rkStore.js',rkjsPath+'rkUtil.js',rkjsPath+'rkTable.js'], 
		function($,rkTree,rkTags,rkWin,rkFormUtil,rkAlert,rkAjax,rkStore,rkUtil,rkTable) {
	'use strict'
	var recordList=rkTable.init("recordList", "/rk/web/rrs/cost/record/queryPage",{},"radio","searchBtn");
	var verifyUrl = "/rk/admin/rrs/cost/record/mainDepVerify";
	var btns=rkTags.btn.yesNoBtn("tableDiv", true, function(){
		var ids=rkTable.getChecked("recordList");
		if(rkUtil.rkStrUtil.isNull(ids)){
			rkAlert.errAlertMsg("请至少选择一条记录");
			return;
		}
		rkAjax.postAjaxNoErr(verifyUrl,{idArr:ids,yesOrNo:"1"},function(data){
			rkAlert.succAlert(data.msg);
			rkTable.reload(recordList);
		});
	},function(){
		var ids=rkTable.getChecked("recordList");
		if(rkUtil.rkStrUtil.isNull(ids)){
			rkAlert.errAlertMsg("请至少选择一条记录");
			return;
		}
		rkAjax.postAjaxNoErr(verifyUrl,{idArr:ids,yesOrNo:"0"},function(data){
			rkAlert.succAlert(data.msg);
			rkTable.reload(recordList);
		});
	});
});
function renderEquType(data, type, row, meta){
	return rkTableObj.tableRender.renderDic(data,row,meta,"equipmentType");
}
function renderCostType(data, type, row, meta){
	return rkTableObj.tableRender.renderDic(data,row,meta,"cblxwh");
}
function renderVerifyStatus(data, type, row, meta){
	return rkTableObj.tableRender.renderDic(data,row,meta,"verifystatus");
}
